package cn.crex1.xiaomi.service.impl;

import java.util.List;

import cn.crex1.xiaomi.dao.CategorySDao;
import cn.crex1.xiaomi.dao.ProductDao;
import cn.crex1.xiaomi.dao.SearchDao;
import cn.crex1.xiaomi.dao.impl.CategorySDaoImpl;
import cn.crex1.xiaomi.dao.impl.ProductDaoImpl;
import cn.crex1.xiaomi.dao.impl.SearchDaoImpl;
import cn.crex1.xiaomi.service.SearchService;
import cn.crex1.xiaomi.vo.ProductVO;

public class SearchServiceImpl implements SearchService {
	private SearchDao searchDao=new SearchDaoImpl();

	@Override
	public List<ProductVO> selectOProductByOProductName(ProductVO productVO) {
		if(productVO.getName()!=null) {
			List<ProductVO> productVOs=searchDao.selectOProductByOProductName(productVO);
			return productVOs;
		}
		return null;
	}
}
